//
//  DatabaseService.h
//  TheRicher
//
//  Created by 李晓东 on 2018/1/18.
//  Copyright © 2018年 PeanutXu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DatabaseResultDelegate.h"
#import "ShuangSeQiu.h"

static  NSString const *shuangSeQiuTableName1 = @"T_ShuangSeQiu";

#define ShuangSeQiuTableName @"T_ShuangSeQiu"

@interface DatabaseService : NSObject<DatabaseResultDelegate>

@property (nonatomic, assign) id<DatabaseResultDelegate> delegate;
+ (instancetype)share;
- (void)queryTable:(NSString *)tableName withCondition:(NSString *)condition ofConditionName:(NSString *)conditionName andJudgeFlag:(NSString *)judgeFlag andOrderBy:(NSString *)columnName andSortBy:(NSInteger)sort andCountOf:(NSInteger)count;

- (void)insertTable:(NSString *)tableName withObject:(NSArray *)shuangSeQiuArray;
- (void)insertTableOfKillingNumberWithObjects:(NSArray *)shuangSeQiuArray inColumn:(NSString *)columnName;
@end
